<?php

namespace app\validate;

use core\validate\ValidateBase;

class HomeMenu extends ValidateBase
{

    protected $rule =   [
        'title'  => 'require',
        'cid'    => 'require|number',
        'siteid' => 'require|number',
    ];

    protected $message  =   [
        'title.require'  => '菜单名必填',
        'cid.require'    => '菜单分类必填',
        'siteid.require' => '站点必填',
        'pid.number'     => '父菜单格式错误',
        'cid.number'     => '菜单分类格式错误',
        'siteid.number'  => '站点格式错误',
    ];
}
